projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d486bd
)
* Make comp ignore EIEIO classes (bug#70141)
author
Andrea Corallo
<acorallo@gnu.org>
Mon, 8 Apr 2024 09:21:37 +0000
(11:21 +0200)
committer
Andrea Corallo
<acorallo@gnu.org>
Mon, 8 Apr 2024 10:07:22 +0000
(12:07 +0200)
* lisp/emacs-lisp/comp-cstr.el (comp--all-classes): Ignore EIEIO classes.
lisp/emacs-lisp/comp-cstr.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/comp-cstr.el
b/lisp/emacs-lisp/comp-cstr.el
index cbfb9540f03094539f34542e24b92b5dfb0c0ba9..d6cb887759fce6e06a1ac57f2a83524dc3cf80ea 100644
(file)
--- a/
lisp/emacs-lisp/comp-cstr.el
+++ b/
lisp/emacs-lisp/comp-cstr.el
@@
-89,7
+89,10
@@
Integer values are handled in the `range' slot.")
"Return all non built-in type names currently defined."
(let (res)
(mapatoms (lambda (x)
- (when (cl-find-class x)
+ (when-let ((class (cl-find-class x))
+ ;; Ignore EIEIO classes as they can be
+ ;; redefined at runtime.
+ (gate (not (eq 'eieio--class (type-of class)))))
(push x res)))
obarray)
res))